<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>js常见算法</title>
</head>

<body>
  <!-- <script src="index.js"></script> -->

  <script>
    // var arr = [1,2,3,2,3,2,"a","a"];
    // console.log("去重之后的数组是："+arr.delRepeat())
    // var json = arr.jsonUniqure();
    // for(var k in json){
    //   console.log(k);
    // }
    //
    //
    // var arr = [1,2,3,4,5,6,7,8,9,10];
    // console.log(arr.binary(11))
    //
    // var arr = [2,1,4,3,6,5];
    // var newArr = arr.bubbleSort(function(a,b){
    //   return a - b;
    // });
    // console.log(newArr)

    // var arr1 = ['1','a',2,3,'a','a'];
    // findWord(arr1,'a')//1 4 5
  </script>
  <script src="bubbleSort.js"></script>
  <script>
    var arr = [1, 9, 2, 4, 6];
    console.log(arr.bubbleSort(function(a, b) {
      return a - b;
    }))
  </script>
</body>

</html>
